﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Master Pages/Site.master" AutoEventWireup="True"
    CodeBehind="Default.aspx.cs" Inherits="parkour._Default"%>
<%@ MasterType VirtualPath="~/Master Pages/Site.master" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Log In
    </h2>
    <p>
        Please enter your username and password.
        <asp:HyperLink ID="RegisterHyperLink" runat="server" EnableViewState="false" NavigateUrl="~/UserRegistration.aspx">Register</asp:HyperLink> if you don't have an account.
    </p>
    <p>
        <asp:Label ID="ErrorMessage" ForeColor="Red" runat="server" />
    </p>
    <p>
        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Username:</asp:Label>
        <asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox>
        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                    ValidationGroup="LoginUserValidationGroup">*Username is required.</asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
        <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" 
                                    ValidationGroup="LoginUserValidationGroup">*Password is required.</asp:RequiredFieldValidator>
    </p>
    <p class="submitButton">
        <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="LoginUserValidationGroup" OnClick="LoginButtonClick"/>
    </p>
</asp:Content>
